package com.test;

import java.util.Vector;


abstract class Tank{
		protected int x=0;
		protected int y=0;
		protected boolean alive =true;
		protected int direct = 0;
		protected int speed = 3;
		protected int color ;
		
		protected Vector<Munition> mm=new Vector<Munition>();
		
		public Vector<Munition> getMm() {
			return mm;
		}


		public void setMm(Vector<Munition> mm) {
			this.mm = mm;
		}


		public Munition getM() {
			return m;
		}


		public void setM(Munition m) {
			this.m = m;
		}


		protected Munition m=null;
		
		public boolean isAlive() {
			return alive;
		}


		public void setAlive(boolean alive) {
			this.alive = alive;
		}


		//direction 0--haut 1--bas 2--gauche 3-- droite
	
		public int getColor() {
			return color;
		}


		public void setColor(int color) {
			this.color = color;
		}


		public int getSpeed() {
			return speed;
		}


		public void setSpeed(int speed) {
			this.speed = speed;
		}


		public int getDirect() {
			return direct;
		}


		public void setDirect(int direct) {
			this.direct = direct;
		}


		public int getX() {
			return x;
		}


		public void setX(int x) {
			this.x = x;
		}


		public int getY() {
			return y;
		}


		public void setY(int y) {
			this.y = y;
		}


		public Tank(int x,int y){
			this.x = x;
			this.y = y;
		}
		public Tank(int x,int y,int direct){
			this.x = x;
			this.y = y;
			this.direct = direct;
		}
		
	}